ioemu: fix VNC case when switching from 32bpp to 24bpp
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 25 Mar 2008 10:24:26 +0000 (10:24 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 25 Mar 2008 10:24:26 +0000 (10:24 +0000)
Even if we don't need to tell the client to redepth, we need to tell
e.g. xenfb that we can't share the buffer any more.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
tools/ioemu/vnc.c

index 9c9cbb3fc0730ef38a6d604e7996f182c4eddb23..6cfba55be9ff6bb4f705b1837740bae9902c4d01 100644 (file)
@@ -1636,8 +1636,8 @@ static void vnc_dpy_colourdepth(DisplayState *ds, int depth)
 
     switch (depth) {
         case 24:
-            if (ds->depth == 32) return;
             ds->shared_buf = 0;
+            if (ds->depth == 32) return;
             depth = 32;
             break;
         case 0: